package com.punai.config.sqlitedao;


import com.punai.config.sqlitedomain.Template;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface TemplateRepository {
    Template findOne(String id) ;

    List<Template> findAll() ;

    Template findMaxTemplateCode();

    Template save(Template model) ;

    Template update(Template model) ;

    Page<Template> findPageForMap(Map<String, Object> toMap, Pageable pagination);

    void delete(String oid) ;

    List<Template> findAllByType(String type);
}
